home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00C0C0C0&
- Caption = "DBPush v1.9 Demo"
- ClientHeight = 5100
- ClientLeft = 1260
- ClientTop = 1995
- ClientWidth = 7980
- ClipControls = 0 'False
- Height = 5505
- Left = 1200
- LinkTopic = "Form1"
- ScaleHeight = 5100
- ScaleWidth = 7980
- Top = 1650
- Width = 8100
- Begin DBPush DBPush2
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Autodisable demo"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 735
- Left = 3960
- Outline = -1 'True
- OutlineSize = 1
- Picture = FORM1.FRX:0000
- PictureFromEdge = 0
- Placement = 1 'Text right of picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 21
- Top = 3240
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1815
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Yellow"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 3
- Left = 2820
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 20
- Top = 4320
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "White"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 2
- Left = 2820
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 19
- Top = 3960
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Black"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 1
- Left = 2820
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 18
- Top = 3600
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush13
- Alignment = 2 'Center
- AutoPictureDisabled= 7 'All contours Inset (thin)
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Transparent picture demo"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 1575
- Left = 240
- Outline = -1 'True
- OutlineSize = 1
- Picture = FORM1.FRX:0302
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 13
- Top = 3180
- TransColor = &H0000FFFF&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2475
- End
- Begin DBPush cmdHelp
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Help"
- CornerColor = &H00C0C0C0&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 492
- Left = 4740
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 1 'Text right of picture
- PredefPicture = 3 'Help
- Style = 0 'Normal
- TabIndex = 15
- Top = 4380
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1392
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "None"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = -1 'True
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 0
- Left = 2820
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 14
- Top = 3240
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush33
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 1
- Caption = "Even this panel||is a DBPush!"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 3 'Inset w/light shading
- Font3DDisabled = 0 'None
- ForceDown = -1 'True
- ForceUp = 0 'False
- ForeColor = &H00FF0000&
- ForeColorDisabled= &H00000000&
- Height = 915
- Left = 5940
- Outline = 0 'False
- OutlineSize = 0
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 1 'Sink deep
- TabIndex = 17
- TabStop = 0 'False
- Top = 3240
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1815
- End
- Begin DBPush DBPush320
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Next"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 5520
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 11
- Top = 2760
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1032
- End
- Begin DBPush DBPush321
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Disable"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 6720
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 12
- Top = 2760
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1032
- End
- Begin DBPush cmdExit
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Exit"
- CornerColor = &H00C0C0C0&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 492
- Left = 6240
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 1 'Text right of picture
- PredefPicture = 2 'Cancel
- Style = 0 'Normal
- TabIndex = 16
- Top = 4380
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1392
- End
- Begin DBPush DBPush223
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Bevel"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 4140
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 9
- Top = 2760
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1092
- End
- Begin DBPush DBPush222
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Outline"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 2940
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 8
- Top = 2760
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1092
- End
- Begin DBPush DBPush221
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Sink deep"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 4140
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 7
- Top = 2460
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1092
- End
- Begin DBPush DBPush220
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Ellipse"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 2940
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 6
- Top = 2460
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1092
- End
- Begin DBPush DBPush110
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Disable"
- CornerColor = &H00000000&
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 252
- Left = 900
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 1
- Top = 1320
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1152
- End
- Begin DBPush DBPush12
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Alignment demo"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 1335
- Left = 240
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 4
- Top = 1680
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2475
- End
- Begin DBPush DBPush21
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Different picture when depressed"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 1395
- Left = 2820
- Outline = -1 'True
- OutlineSize = 1
- Picture = FORM1.FRX:0D9C
- PictureDown = FORM1.FRX:109E
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 2
- Top = 180
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2475
- End
- Begin DBPush DBPush22
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Style demo"
- CornerColor = &H00C0C0C0&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 732
- Left = 2820
- Outline = 0 'False
- OutlineSize = 0
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 5
- Top = 1680
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2472
- End
- Begin DBPush DBPush31
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Custom cursor demo"
- CornerColor = &H00000000&
- CustomCursor = FORM1.FRX:13A0
- FocusRect = -1 'True
- Font3D = 2 'Raised w/heavy shading
- Font3DDisabled = 0 'None
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 13.5
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 1395
- Left = 5400
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 3
- Top = 180
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2475
- End
- Begin DBPush DBPush32
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Predefined picture demo"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 1032
- Left = 5400
- Outline = -1 'True
- OutlineSize = 1
- PictureFromEdge = 0
- Placement = 1 'Text right of picture
- PredefPicture = 1 'OK
- Style = 0 'Normal
- TabIndex = 10
- Top = 1680
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2472
- End
- Begin DBPush DBPush11
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Placement demo"
- CornerColor = &H00000000&
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 1095
- Left = 240
- Outline = -1 'True
- OutlineSize = 1
- Picture = FORM1.FRX:16A2
- PictureDisabled = FORM1.FRX:19A4
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 0
- Top = 180
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 2475
- End
- Option Explicit
- Dim nCurrentButtonDown As Integer
- Sub cmdExit_Click ()
- End
- End Sub
- Sub cmdHelp_Click ()
- Dim S As String
- S = "DBPush is an enhanced 3D command button control. Most "
- S = S + "of its features my be tried out in this demo. For a "
- S = S + "complete description, please refer to the document "
- S = S + """DBPUSH.WRI.""" + Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10)
- S = S + "DBPush was written by Dan Bystr
- m." + Chr$(13) + Chr$(10)
- S = S + "e-mail: ""dan.bystrom@adb-partner.it-invest.se"""
- MsgBox S, 0, "About DBPush"
- End Sub
- Sub DBPush1_Click (Index As Integer)
- DBPush1(nCurrentButtonDown).ForceDown = False
- DBPush1(Index).ForceDown = True
- nCurrentButtonDown = Index
- Select Case nCurrentButtonDown
- Case 0:
- DBPush13.Transparent = False
- Case 1:
- DBPush13.Transparent = True
- DBPush13.TransColor = &HFFFFFF
- Case 2:
- DBPush13.Transparent = True
- DBPush13.TransColor = 0
- Case 3:
- DBPush13.Transparent = True
- DBPush13.TransColor = &HFFFF&
- End Select
- End Sub
- Sub DBPush11_Click ()
- DBPush11.Placement = (DBPush11.Placement + 1) Mod 5
- Select Case DBPush11.Placement
- Case 0: DBPush11.Caption = "Picture above text"
- Case 1: DBPush11.Caption = "Picture left of text"
- Case 2: DBPush11.Caption = "Picture below text"
- Case 3: DBPush11.Caption = "Picture right of text"
- Case 4: DBPush11.Caption = "Text on top of picture"
- End Select
- End Sub
- Sub DBPush110_Click ()
- DBPush11.Enabled = DBPush110.ForceDown
- DBPush110.ForceDown = Not DBPush110.ForceDown
- End Sub
- Sub DBPush12_Click ()
- DBPush12.Alignment = (DBPush12.Alignment + 1) Mod 3
- If DBPush12.Alignment = 0 Then
- DBPush12.VertAlignment = (DBPush12.VertAlignment + 1) Mod 3
- End If
- End Sub
- Sub DBPush2_Click ()
- frmAutoDisable.Show 1
- End Sub
- Sub DBPush220_Click ()
- DBPush220.ForceDown = Not DBPush220.ForceDown
- DBPush22.Style = (DBPush22.Style And 1) + IIf(DBPush220.ForceDown, 2, 0)
- End Sub
- Sub DBPush221_Click ()
- DBPush221.ForceDown = Not DBPush221.ForceDown
- DBPush22.Style = (DBPush22.Style And 2) + IIf(DBPush221.ForceDown, 1, 0)
- End Sub
- Sub DBPush222_Click ()
- DBPush22.OutlineSize = (DBPush22.OutlineSize + 1) Mod 4
- End Sub
- Sub DBPush223_Click ()
- DBPush22.BevelWidth = (DBPush22.BevelWidth + 1) Mod 5
- End Sub
- Sub DBPush320_Click ()
- DBPush32.PredefPicture = 1 + DBPush32.PredefPicture Mod 5
- End Sub
- Sub DBPush321_Click ()
- DBPush32.Enabled = DBPush321.ForceDown
- DBPush321.ForceDown = Not DBPush321.ForceDown
- End Sub
-